#include "../../asyncpages.h"

#include <unistd.h>
#include <time.h>
#include <omp.h>
#include <stdio.h>

int main() {
  fork();
  fork();
  async_page_management_init();
  sleep( 1) ;
  omp_set_num_threads(2);
#pragma omp parallel
{
  async_advertise_release( NULL, getpid() );
  sleep( 1 );
  printf( "Getting all messages on %d\n",getpid());
  async_process_all_messages();
} 

}
